From: Marco Trevisan (TreviƱo) Date: Tue, 29 May 2018 00:00:04 +0000 (+0300) Subject: authPrompt: Do not enable sensitivity if retries are disallowed X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~4^2~31 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8f848925f6cdae0d96c355faa8acc2b0d45ab16c;p=gnome-shell.git authPrompt: Do not enable sensitivity if retries are disallowed Set the sensitivity of the UI according to the canRetry parameter and thus if no more logins are allowed don't take any input. Fixes #311 --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index d9ec7eea8..a0a4a21d6 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -242,11 +242,11 @@ var AuthPrompt = new Lang.Class({ this.emit('prompted'); }, - _onVerificationFailed() { + _onVerificationFailed(userVerifier, canRetry) { this._queryingService = null; this.clear(); - this.updateSensitivity(true); + this.updateSensitivity(canRetry); this.setActorInDefaultButtonWell(null); this.verificationStatus = AuthPromptStatus.VERIFICATION_FAILED; }, diff --git a/js/gdm/util.js b/js/gdm/util.js index 75feb77d0..1c6150eda 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -565,7 +565,7 @@ var ShellUserVerifier = new Lang.Class({ } } - this.emit('verification-failed'); + this.emit('verification-failed', canRetry); }, _onConversationStopped(client, serviceName) {